<?php
/**
 * User: taodf
 * Date: 17-4-29
 * Time: 下午7:43
 */

namespace Zeus\View;

use Zeus\Support\ServiceProvider;

class ViewServiceProvider extends ServiceProvider
{

    protected $provides=[
        "view",
        \Zeus\View\View::class
    ];

    public function register()
    {
        $this->getContainer()->share(
            "view", $view=new View($this->getContainer()->getViewPath())
        );
    }
}